if the hilite of card button "Irregular 3" is true then
show background field "Irregular Participle"
else
hide background field "Irregular Participle"
end if
if the hilite of card button "Irregular 1" is true and background field "Tense" is "Present" then
DoIrregular Present
else
if the hilite of card button "Irregular 2" is true and background field "Tense" is "Preterite" then
DoIrregular Preterite
else
RefreshScreen
put Normal into PrevTense
end if
end if
end if
end SetCard
on DoHighlight Menu, MenuButton
Global MenuChoice
get ((the mouseV - item 2 of the rect of bg field Menu) div 12) + 1
put line it of background field Menu into MenuChoice
get offset(return & MenuChoice & return, background field Menu) + 1
Select char it to length(MenuChoice) + it of background field Menu
wait 5
hide background field Menu
set hilite of bg button MenuButton to false
send ManageResponse to background field Menu
end DoHighlight
on LocateMouse Menu, MenuButton
if the visible of background field Menu is true then
put false into Stop
repeat while the Mouseh>=the left of bg field Menu and the mouseh<=the right of bg field Menu and the mousev>=the top of bg field Menu and the mousev<=the bottom of bg field Menu and Stop is false
if the mouse is up then
DoHighlight Menu, MenuButton
put true into Stop
end if
end repeat
hide background field Menu
set hilite of background button MenuButton to false
end if
end LocateMouse
on PutChoices Menu, MenuItems, MenuButton
lock screen
show background field Menu
put MenuItems into background field Menu
set hilite of bg button MenuButton to true
unlock screen
end PutChoices
on FormVerb Tense
put Tense into background field "SubjectRef"
Conjugate background field Verb, Tense, Normal
Refreshscreen
end FormVerb
on DoIrregular Tense
Global PrevTense
if PrevTense is not Tense then
lock screen
Refreshscreen
unlock screen
end if
repeat with Subject=1 to 6
set cursor to busy
get Tense&Subject
show background field it
end repeat
put Tense into PrevTense
end DoIrregular
on RefreshScreen
Global PrevTense
if PrevTense is "Present" or PrevTense is "Preterite" then